package com.macro.mall.portal.service;


import com.macro.mall.common.api.CommonResult;
import com.macro.mall.common.domain.MinioUploadDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

@FeignClient("mall-admin")
public interface AdminService {

    @PostMapping(value = "/minio/upload", produces = MediaType.APPLICATION_JSON_VALUE,consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    CommonResult<MinioUploadDto> upload(@RequestPart("file") MultipartFile file);
}
